# -*- coding: utf-8 -*-
# @Time    : 2020/3/20 9:14
# @Author  : Weymouth
# @Email   : 261229090@qq.com
# @File    : pickle_load.py
# @Software: PyCharm
# ---------------------------------------------------

import pickle

def foo():
    print('ok')

f = open('PICKLE_test', 'rb')
data = f.read()
data = pickle.loads(data)

data()
print(data['name'])

f.close()